.class public Lrexsee/core/progress/RexseeProgressTextDialog;
.super Ljava/lang/Object;
.source "RexseeProgressTextDialog.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "ProgressTextDialog"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;

.field private mTextProgressDialog:Landroid/app/AlertDialog;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 40
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 34
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;

    .line 41
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mBrowser:Lrexsee/core/browser/Browser;

    .line 42
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;

    .line 43
    return-void
.end method

.method static synthetic access$0(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/app/AlertDialog;
    .locals 1

    .prologue
    .line 34
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/core/progress/RexseeProgressTextDialog;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 36
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lrexsee/core/progress/RexseeProgressTextDialog;Landroid/app/AlertDialog;)V
    .locals 0

    .prologue
    .line 34
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mTextProgressDialog:Landroid/app/AlertDialog;

    return-void
.end method

.method static synthetic access$3(Lrexsee/core/progress/RexseeProgressTextDialog;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 37
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 27
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 23
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "ProgressTextDialog"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 31
    new-instance v0, Lrexsee/core/progress/RexseeProgressTextDialog;

    invoke-direct {v0, p1}, Lrexsee/core/progress/RexseeProgressTextDialog;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public hide()V
    .locals 2

    .prologue
    .line 105
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/progress/RexseeProgressTextDialog$2;

    invoke-direct {v1, p0}, Lrexsee/core/progress/RexseeProgressTextDialog$2;-><init>(Lrexsee/core/progress/RexseeProgressTextDialog;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 117
    return-void
.end method

.method public show(Ljava/lang/String;)V
    .locals 2
    .param p1, "message"    # Ljava/lang/String;

    .prologue
    .line 101
    sget-object v0, Lrexsee/core/lang/RexseeLanguage;->TITLE_PROGRESS:Ljava/lang/String;

    const-string v1, ""

    invoke-virtual {p0, v0, p1, v1}, Lrexsee/core/progress/RexseeProgressTextDialog;->show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 102
    return-void
.end method

.method public show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .param p1, "title"    # Ljava/lang/String;
    .param p2, "message"    # Ljava/lang/String;
    .param p3, "cancelCallback"    # Ljava/lang/String;

    .prologue
    .line 47
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressTextDialog;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/progress/RexseeProgressTextDialog$1;

    invoke-direct {v1, p0, p1, p3, p2}, Lrexsee/core/progress/RexseeProgressTextDialog$1;-><init>(Lrexsee/core/progress/RexseeProgressTextDialog;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 99
    return-void
.end method
